home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
TGKI-109
/
Games
/
fratboy_girlfriend_tower_defense.swf
/
scripts
/
DefineButton2_1646
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2010-11-09
|
1KB
|
18 lines
on(release){
_root.gold += sellSum;
_root.map[Math.round(eval("_root.tower" + _root.activeTower)._y / _root.cellSize) - 1][Math.round(eval("_root.tower" + _root.activeTower)._x / _root.cellSize) - 1] = 1;
_root.map[Math.round(eval("_root.tower" + _root.activeTower)._y / _root.cellSize) - 2][Math.round(eval("_root.tower" + _root.activeTower)._x / _root.cellSize) - 1] = 1;
_root.map[Math.round(eval("_root.tower" + _root.activeTower)._y / _root.cellSize) - 1][Math.round(eval("_root.tower" + _root.activeTower)._x / _root.cellSize) - 2] = 1;
_root.map[Math.round(eval("_root.tower" + _root.activeTower)._y / _root.cellSize) - 2][Math.round(eval("_root.tower" + _root.activeTower)._x / _root.cellSize) - 2] = 1;
if(towerType == 5)
{
_root.towerCost[5][0] -= 25;
}
eval("_root.tower" + _root.activeTower).swapDepths(99999);
removeMovieClip(eval("_root.tower" + _root.activeTower));
_root.snsr.swapDepths(99999);
_root.snsr.removeMovieClip();
this.swapDepths(99999);
removeMovieClip(this);
}